public class RunoobTest {

    private int x = 0;

    private static int staticVar;

    private int instanceVar;

    public void method(int param){

        int localVar = 10;

        instanceVar = localVar;

        staticVar = param;

        System.out.println("成员变量："+ instanceVar);
        System.out.println("静态变量: " + staticVar);
        System.out.println("参数变量: " + param);
        System.out.println("局部变量: " + localVar);


    }

    public static void main(String[] args) {

        RunoobTest runoobTest = new RunoobTest();

        runoobTest.method(20);

    }

}
